package com.yanqu.road.server.timer.shuihu;

import com.yanqu.road.server.manager.cross.battle.ShuiHuActivity;
import com.yanqu.road.server.manager.cross.battle.ShuiHuMgr;
import com.yanqu.road.utils.executor.GeneralTask;

import java.util.Map;

/**
 * 水浒卡抽卡同步
 */
public class ShuiHuSyncDrawTask extends GeneralTask {

    @Override
    public void doRun() {
        Map<Integer, ShuiHuActivity> activityMap = ShuiHuMgr.getActivityMap();
        if (activityMap != null) {
            for (ShuiHuActivity activity : activityMap.values()) {
                activity.syncDrawMsgList(false);
            }
        }
    }
}
